namespace CSharpPro;

public class Phone
{
        public string Brand { get; set; }
        public string Weight { get; set; }
        public int Camera { get; set; }
        public int Price { get; set; }
        
        public Phone(string brand, string weight, int camera, int price)
        {
            Brand = "苹果6SPlus";
            Weight = "192g";
            Camera = 1200000000;
            Price = 6288;
        }
        
        public void PrintPhoneInfo()
        {
            Console.WriteLine($"品牌：{Brand}");
            Console.WriteLine($"重量：{Weight}");
            Console.WriteLine($"后置摄像头像素：{Camera}");
            Console.WriteLine($"价格：{Price}");
        }
    
}
